package com.example.ribbon.service;

import com.alibaba.fastjson.JSONObject;
import com.example.util.MethodDesc;
import com.example.util.Module;

@Module(name = "文章调用ribbon模块",description = "ribbon")
public interface NoteRibbonService {

    @MethodDesc(description = "根据当前登录用户名保存文章")
    public JSONObject noteUserSave(String title,String typeId,String tag,String content);

    @MethodDesc(description = "根据当前登录用户名更新文章")
    public JSONObject noteUserUpdate(String id,String title,String typeId,String tag,String content);


    @MethodDesc(description = "获取单条文章数据")
    public JSONObject noteGetOne(String nodeId,String noteId);

    @MethodDesc(description = "获取单条文章数据详情")
    public JSONObject noteGetOneInfo(String nodeId,String noteId);

    @MethodDesc(description = "根据当前登录用户去获取文章数据")
    public JSONObject notePageUser(String userId,Integer pageNum,Integer pageSize,String keyword);


}
